home *** CD-ROM | disk | FTP | other *** search
/ Your Choice 1 / your choice.zip / your choice / PRGMMING / CX201 / MCXF.CMD < prev    next >
OS/2 REXX Batch file  |  1994-03-01  |  1KB  |  49 lines

  1. @echo off
  2. del cxf.exe
  3. if "%1" == "mc" goto :MC
  4. if "%1" == "wc" goto :WC
  5. if "%1" == "mcdll" goto :MCDLL
  6. if "%1" == "wcdll" goto :WCDLL
  7.  
  8. :usage
  9. echo ------------------------------------------------------------------
  10. echo This batch file creates CXF.EXE.
  11. echo YOU MUST RUN OCM.EXE FIRST TO EXTRACT OBJECT CODE.
  12. echo ------------------------------------------------------------------
  13. echo mcxf mc    -  Microsoft C          -  using CX.OBJ
  14. echo mcxf wc    -  Watcom C (32 bit)    -  using CX.OBJ
  15. echo mcxf mcdll -  Microsoft C          -  using CXOS2.DLL
  16. echo mcxf wcdll -  Watcom C (32 bit)    -  using CXOS2.DLL
  17. echo ------------------------------------------------------------------
  18. echo When using a C/C++ compiler:
  19. echo    set CXINC=include directory (no backslash, like c:\msvc\include)
  20. echo    set CXLIB=library directory (no backslash, like c:\msvc\lib)
  21. echo ------------------------------------------------------------------
  22. goto :end
  23.  
  24. :MC
  25. cl -I%CXINC% -G2s -AL -c cxf.c
  26. link /NOD/PM:VIO cxf cx,,,%CXLIB%\llibcep %CXLIB%\os2;
  27. goto :end
  28.  
  29.  
  30. :MCDLL
  31. cl -I%CXINC% -G2s -AL -c cxf.c
  32. link /NOD/PM:VIO cxf,,,cxos2 %CXLIB%\llibcep %CXLIB%\os2;
  33. goto :end
  34.  
  35.  
  36. :WC
  37. if "%CXINC%" == "" set CXINC=c:\wc\h;e:\toolkit\c\os2h
  38. wcl386 -I%CXINC% /d3 /zp1 /dCX32BIT cxf.c cx.obj
  39. goto :end
  40.  
  41.  
  42. :WCDLL
  43. wcl386 -I%CXINC% /d3 /zp1 /dCX32BIT cxf.c cxos2.lib
  44. goto :end
  45.  
  46.  
  47. :end
  48.  
  49.